package com.landian.commons.jpa.hql;

/**
 * ParameterPredicate
 *
 * @author caojl
 * @create 2017/12/04
 **/
public class PathPredicate implements PredicateHql{

    public static PathPredicate newInstance(String path, ParameterUnit parameterUnit, OperationType operationType){
        return new PathPredicate(path, parameterUnit, operationType);
    }

    private PathPredicate(String path, ParameterUnit parameterUnit, OperationType operationType){
        this.predicateHql = PredicateHqlCommon.newInstance(path, parameterUnit, operationType);
    }

    private PredicateHql predicateHql;

    @Override
    public String hql() {
        return predicateHql.hql();
    }

    @Override
    public ParameterUnit parameterUnit() {
        return predicateHql.parameterUnit();
    }

}
